<template lang="pug">
  keep-alive
    kalix-table(bizKey="runsit" title='骨干线路的实时运行情况' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="runsitURL"
    v-bind:bizDialog="runsitDialog"
    v-bind:btnList="runsitBtnList"
    v-bind:buttonPermissionPrefix="buttonPermissionPrefix"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="RunsitSearch")
</template>

<script type="text/ecmascript-6">
  import {KshRunsitURL, runsitBtnPermissionPrefix} from '../config.toml'
  import {runsitConfigBtnList} from './config'
  import KalixTable from '../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-ksh-runsit',
    components: {KalixTable},
    data() {
      return {
        runsitURL: KshRunsitURL,
        tableFields: [
          {prop: 'uuid', label: 'UUID'},
          {prop: 'name', label: '设备名称'}
        ],
        runsitDialog: [
          {id: 'add', dialog: 'RunsitAdd'},
          {id: 'view', dialog: 'RunsitView'},
          {id: 'edit', dialog: 'RunsitEdit'}
        ],
        runsitBtnList: runsitConfigBtnList,
        buttonPermissionPrefix: runsitBtnPermissionPrefix,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
